package com.lzlearn.factory;

import com.lzlearn.dao.MyDao;

public class DaoFactory {
    private MyDao myDao;



    public static MyDao getDao(){
        System.out.println("DaoFactory的getdao方法被调用");
        return new MyDao();
    }
    public  MyDao resultDao(){
        System.out.println("DaoFactory的resultDao方法被调用");
        return new MyDao();
    }
}
